//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package commands;

import common.ByteStream;

public class CollectCompletedBuildingExp extends LogicCommand {
    private final int cmdId = 17;
    private final int buildingId;

    public CollectCompletedBuildingExp(int tt, int buildingId) {
        super(tt);
        this.buildingId = buildingId;
    }

    public int getCommandId() {
        return 17;
    }

    public void encode(ByteStream stream) {
        stream.writeInt(17);
        stream.writeInt(this.buildingId);
        stream.writeInt(this.ticksWhenTouch().intValue());
    }
}
